local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, script.Parent.Bow);
-- 装备到玩家身上的弓箭

local IsClient = game:GetService("RunService"):IsClient();
local Tool=_G.CommonOHOH.load.WeaponTool();

function M.new(self, ...)
	return M(self, ...);
end;

local BaseComponent=script.Parent.Component
local ShootComponent=script.Parent.Component.shoot
function M.ctor(self,equiId,character,player)

    if  IsClient then
        M.super.ctor(self,equiId,character,nil,player);

    else
        local weaponInfo=Tool.GetWeaponArt(equiId)
        M.super.ctor(self,equiId,character,weaponInfo.Arch:Clone(),player);
        self:Bind2character()
        self:AddPrivateComponent(ShootComponent.shoot)
        self:AddPrivateComponent(BaseComponent.animation)

    end
    self:AddPrivateComponent(script.monitor)
end;



function M.dtor(self)
	M.super.dtor(self);
end;

return M;
